﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<% String basepath = request.getContextPath(); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>招聘管理系统</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <link href="<%=basepath%>/resources/css/login.css" rel="stylesheet" type="text/css"/>
    <link href="<%=basepath%>/resources/js/plugins/layui/css/layui.css" rel="stylesheet" type="text/css"/>
    <style type="text/css">
        .line-height40{
            line-height: 40px;
        }
    </style>
</head>
<body>
<div id="header" >
    <ul class="layui-nav uinfo" style="line-height: 40px;">
        <li class="layui-nav-item" style="line-height: 40px;">
            <a class="a0" href="javascript:;" id="ocbtn1"><i class="layui-badge layui-bg-red" style="margin-left: -25px;">1</i>待办事项</a>
            <!--<dl class="layui-nav-child">
                <dd><a href="">移动模块</a></dd>
                <dd><a href="">后台模版</a></dd>
                <dd><a href="">电商平台</a></dd>
            </dl>-->
        </li>
        <li class="layui-nav-item" style="line-height: 40px;">
            <a class="a1" href="javascript:top.changeDisplayMode();" id="ocbtn">隐藏菜单</a>
        </li>
        <li class="layui-nav-item" style="line-height: 40px;">
            <a class="a3" target="rightfrm" href="/SysAdmin/changepwd">修改密码</a>
        </li>
        <li class="layui-nav-item" style="line-height: 40px;">
            <a class="a4" href="javascript:">退出系统</a>
        </li>
        <li class="layui-nav-item" style="line-height: 40px;"><div ><i class="layui-icon layui-icon-username" ></i>  当前用户：${user}</div></li>
    </ul>

   <%-- <div class="uinfo">当前用户：${user}</div>
    <a class="a4" href="javascript:">退出系统</a>
     <a class="a3" target="rightfrm" href="/SysAdmin/changepwd">修改密码</a>
   &lt;%&ndash; <a class="a2" target="rightfrm" href="/UserInfo/UInfo">用户设置</a>&ndash;%&gt;
    <a class="a1" href="javascript:top.changeDisplayMode();" id="ocbtn">隐藏菜单</a>
    <a class="a0" href="javascript:show;" id="ocbtn"><span class="layui-badge layui-bg-red">1</span>待办事项</a>--%>

</div>

<script src="<%=basepath%>/resources/js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="<%=basepath%>/resources/js/plugins/layer2.0/layer.js" type="text/javascript"></script>
<script src="<%=basepath%>/resources/js/plugins/layui/layui.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
    //注意：导航 依赖 element 模块，否则无法进行功能性操作
    layui.use('element', function(){
        var element = layui.element;

        //…
    });

    $(function () {
        $('.a4').click(function () {
            postAjax('/loginout', null, function (msg) {
                parent.location = msg.url;
            });
        });
        //layer.tips('点我可以隐藏/显示左侧的菜单咯~', $('.a1'), { guide: 3, time: 10, style: ['background:#EEF1F8; color:#666', '#EEF1F8'] });
    });


    function postAjax(url, parm, callBack) {
        $.ajax({
            type: 'post',
            dataType: "json",
            url: url,
            data: parm,
            cache: false,
            async: false,
            success: function (msg) {
                callBack(msg);
            }
        });
    }
</script>
</body>
</html>